﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.AccessModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CheckMeter
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type ="text/javascript">
        $(function () {
            $("#PresentCount").attr('maxlength', '6');
            $('#PresentCount').bind('keypress', function (e) {
                return (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57) && e.which != 46) ? false : true;
            })
        });
    </script>
    <h2>CheckMeter</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.LocationSetCode) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.LocationSetCode, new  { @readonly = "readonly" ,@class="textbox"})%>
                <%= Html.ValidationMessageFor(model => model.LocationSetCode) %>
            </div>
            
          <div class="editor-label">
                <%= Html.LabelFor(model => model.PreviousCount)%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PreviousCount, new { @readonly = "readonly" ,@class="textbox"})%>
                <%= Html.ValidationMessageFor(model => model.PreviousCount)%>
            </div>
          
            <div class="editor-label">
                <%= Html.LabelFor(model => model.PresentCount)%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PresentCount, new { @class = "textbox" })%>
                <%= Html.ValidationMessageFor(model => model.PresentCount)%>
            </div>
  
          <%--  <div class="editor-label">
                <%= Html.LabelFor(model => model.TotalCount)%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.TotalCount)%>
                <%= Html.ValidationMessageFor(model => model.TotalCount)%>
            </div>--%>
            
         <%--   <div class="editor-label">
                <%= Html.LabelFor(model => model.Discount) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Discount) %>
                <%= Html.ValidationMessageFor(model => model.Discount) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ConversionRate) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ConversionRate) %>
                <%= Html.ValidationMessageFor(model => model.ConversionRate) %>
            </div>--%>
            
           <%-- <div class="editor-label">
                <%= Html.LabelFor(model => model.TotalNoOfRacks)%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.TotalNoOfRacks, String.Format("{0:F}", Model.TotalNoOfRacks))%>
                <%= Html.ValidationMessageFor(model => model.TotalNoOfRacks)%>
            </div>--%>
            
            <p>
                 <input type="submit" class="buttonSummit" value="Next" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

